package com.cdu.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @ProjectName: cdu-app
 * @Titile: LoginDTO
 * @Author: Administrator
 * @Description: 登录DTO
 */
@Data
public class LoginDTO {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @Length(min = 6,max = 12,message = "密码的长度必须为{min}-{max}位")
    private String password;
}
